in=server.cpp serverMain.cpp common.cpp parseMessage.cpp mysqlDBConnPool.cpp log.cpp xmlParse.cpp pthreadpool.cpp
out=serverMain
flag=-std=c++11 -I/usr/include/mysql -lmysqlclient -lpthread -lxml2 -I/usr/local/include/libxml2 -L/usr/local/libxml2 -llog4cxx 
cond=-DTEST_GM
cc=g++

$(out):$(in)
	$(cc) -g -o $(out) $(in) $(flag) $(cond)

.PHONY:clean
clean:
	rm -rf $(out)
